<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Update Pwd</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

</head>
<body class="container">

<div class="width:80%">
    <form class="form-horizontal" th:action="@{/edit}" method="post">
        <input type="text" name="id" id="id" th:value="${user.UserId}" hidden="hidden">

   <input type="text" name="UserId" id="UserId" th:value="${user.UserId}" placeholder="userId">

        <div class="form-group">
            <label for="username" class="col-sm-2 control-label">userName</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"  name="username" id="username" th:value="${user.username}" placeholder="userName">
            </div>
        </div>


        <div class="form-group">
            <label for="password" class="col-sm-2 control-label" >Password</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" name="password" id="password"  th:value="${user.password}" placeholder="Password"/>
            </div>
        </div>

            <div class="form-group">
                <label for="email" class="col-sm-2 control-label" >email</label>
                <div class="col-sm-10">
                    <input type="email" class="form-control" name="email" id="email"  th:value="${user.email}" placeholder="email"/>
                </div>
            </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="submit" value="Submit" class="btn btn-info" />
                        &nbsp; &nbsp; &nbsp;
                        <a href="/toAdd" th:href="@{/index}" class="btn btn-info">Back</a>
                    </div>
                </div>


    </form>
</div>
</body>
</html>